mgokg commited on
Commit
bee8271
·
verified ·
1 Parent(s): 8d714b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -39,7 +39,10 @@ def update(message):
39
  {"role": "user", "content": f"{message} antworte immer auf deutsch"}
40
  ],
41
  )
42
- return completion.choices[0].message.content
 
 
 
43
  except Exception as e:
44
  return f"Error in response generation: {str(e)}"
45
 
@@ -204,7 +207,7 @@ with gr.Blocks() as speech:
204
  gr.Markdown("### audio", elem_classes="tab-header")
205
 
206
  with gr.Row():
207
- sr_outputs = gr.Markdown(gr.Textbox(label="Antwort"))
208
  with gr.Row():
209
  sr_inputs = gr.Microphone(type="filepath")
210
  #with gr.Row():
 
39
  {"role": "user", "content": f"{message} antworte immer auf deutsch"}
40
  ],
41
  )
42
+ results=completion.choices[0].message.content
43
+ results=gr.Markdown(results)
44
+ return results
45
+ #return completion.choices[0].message.content
46
  except Exception as e:
47
  return f"Error in response generation: {str(e)}"
48
 
 
207
  gr.Markdown("### audio", elem_classes="tab-header")
208
 
209
  with gr.Row():
210
+ sr_outputs = gr.Textbox(label="Antwort")
211
  with gr.Row():
212
  sr_inputs = gr.Microphone(type="filepath")
213
  #with gr.Row():