yasserrmd commited on
Commit
1047008
·
verified ·
1 Parent(s): 2f6795f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -19,10 +19,6 @@ def generate_response(prompt_template, **kwargs):
19
  for chunk in stream:
20
  yield chunk.choices[0].delta.content # Yield chunks as they are generated
21
 
22
- # Wrapper function to combine generator output
23
- def get_response(prompt_template, **kwargs):
24
- for chunk in generate_response(prompt_template, **kwargs):
25
- yield chunk
26
 
27
  # Gradio app interface
28
  with gr.Blocks() as app:
 
19
  for chunk in stream:
20
  yield chunk.choices[0].delta.content # Yield chunks as they are generated
21
 
 
 
 
 
22
 
23
  # Gradio app interface
24
  with gr.Blocks() as app: