freddyaboulton HF staff commited on
Commit
9a16ab9
·
1 Parent(s): b6d7cbe

update app

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -32,6 +32,7 @@ thread.start()
32
 
33
  API_URL = "http://0.0.0.0:60808/chat"
34
 
 
35
  account_sid = os.environ.get("TWILIO_ACCOUNT_SID")
36
  auth_token = os.environ.get("TWILIO_AUTH_TOKEN")
37
 
@@ -111,14 +112,16 @@ with gr.Blocks() as demo:
111
  )
112
  with gr.Row():
113
  with gr.Column():
114
- with gr.Group():
115
- audio = WebRTC(
116
- label="Stream",
117
- rtc_configuration=rtc_configuration,
118
- mode="send-receive",
119
- modality="audio",
120
- )
121
- img = gr.Image(label="Image", type="filepath")
 
 
122
  with gr.Column():
123
  conversation = gr.Chatbot(label="Conversation", type="messages")
124
 
 
32
 
33
  API_URL = "http://0.0.0.0:60808/chat"
34
 
35
+ # Only needed if deploying on cloud provider
36
  account_sid = os.environ.get("TWILIO_ACCOUNT_SID")
37
  auth_token = os.environ.get("TWILIO_AUTH_TOKEN")
38
 
 
112
  )
113
  with gr.Row():
114
  with gr.Column():
115
+ with gr.Row():
116
+ with gr.Column():
117
+ audio = WebRTC(
118
+ label="Stream",
119
+ rtc_configuration=rtc_configuration,
120
+ mode="send-receive",
121
+ modality="audio",
122
+ )
123
+ with gr.Column():
124
+ img = gr.Image(label="Image", type="filepath")
125
  with gr.Column():
126
  conversation = gr.Chatbot(label="Conversation", type="messages")
127