mingbaer commited on
Commit
a2436c0
·
verified ·
1 Parent(s): 273b646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -87,7 +87,7 @@ def respond(message,history):
87
  #):
88
  # token = message.choices[0].delta.content
89
  # response += token
90
- return response
91
  #yield response
92
  #print(response["choices"][0]["message"]["content"].strip())
93
 
@@ -116,7 +116,7 @@ def respond(message,history):
116
 
117
  #msg.submit(respond, [msg, chatbot], [msg, chatbot])
118
  #send.click(respond, [msg, chatbot], [msg, chatbot])
119
- print("The bug is in the gradio")
120
  with gr.Blocks(theme='hmb/amethyst') as demo:
121
  # Top image
122
  gr.Image(value="wrap_it_top_image.png", show_label=False, elem_id="top-image")
@@ -149,4 +149,4 @@ with gr.Blocks(theme='hmb/amethyst') as demo:
149
  """
150
  )
151
 
152
- demo.launch(share=True)
 
87
  #):
88
  # token = message.choices[0].delta.content
89
  # response += token
90
+ return response['choices'][0]['message']['content'].strip()
91
  #yield response
92
  #print(response["choices"][0]["message"]["content"].strip())
93
 
 
116
 
117
  #msg.submit(respond, [msg, chatbot], [msg, chatbot])
118
  #send.click(respond, [msg, chatbot], [msg, chatbot])
119
+ print("The bug is in the gradio")
120
  with gr.Blocks(theme='hmb/amethyst') as demo:
121
  # Top image
122
  gr.Image(value="wrap_it_top_image.png", show_label=False, elem_id="top-image")
 
149
  """
150
  )
151
 
152
+ demo.launch(debug=True, share=True)