RamAnanth1 commited on
Commit
b9701ec
·
1 Parent(s): a67c09f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -114,12 +114,12 @@ start_work = """async() => {
114
  }"""
115
 
116
 
117
- with gr.Blocks(title='Talk to catGPT') as demo:
118
- gr.Markdown("## Talk to catGPT with your voice in your native language ! ##")
119
  with gr.Group(elem_id="page_1", visible=True) as page_1:
120
  with gr.Box():
121
  with gr.Row():
122
- start_button = gr.Button("Let's talk to catGPT!", elem_id="start-btn", visible=True)
123
  start_button.click(fn=None, inputs=[], outputs=[], _js=start_work)
124
 
125
  with gr.Group(elem_id="page_2", visible=False) as page_2:
@@ -139,7 +139,7 @@ with gr.Blocks(title='Talk to catGPT') as demo:
139
  with gr.Row(elem_id="prompt_row"):
140
  prompt_input = gr.Textbox(lines=2, label="Input text",show_label=True)
141
  chat_history = gr.Textbox(lines=4, label="prompt", visible=False)
142
- submit_btn = gr.Button(value = "Send to catgpt",elem_id="submit-btn").style(
143
  margin=True,
144
  rounded=(True, True, True, True),
145
  width=100
@@ -162,6 +162,8 @@ with gr.Blocks(title='Talk to catGPT') as demo:
162
  <div class="footer">
163
  <p>Whisper Model by <a href="https://github.com/openai/whisper" style="text-decoration: underline;" target="_blank">OpenAI</a>
164
  </p>
 
 
165
  </div>
166
  ''')
167
  #gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=RamAnanth1.chatGPT_voice)")
 
114
  }"""
115
 
116
 
117
+ with gr.Blocks(title='Talk to CatGPT') as demo:
118
+ gr.Markdown("## Talk to CatGPT with your voice in your native language ! ##")
119
  with gr.Group(elem_id="page_1", visible=True) as page_1:
120
  with gr.Box():
121
  with gr.Row():
122
+ start_button = gr.Button("Let's talk to CatGPT!", elem_id="start-btn", visible=True)
123
  start_button.click(fn=None, inputs=[], outputs=[], _js=start_work)
124
 
125
  with gr.Group(elem_id="page_2", visible=False) as page_2:
 
139
  with gr.Row(elem_id="prompt_row"):
140
  prompt_input = gr.Textbox(lines=2, label="Input text",show_label=True)
141
  chat_history = gr.Textbox(lines=4, label="prompt", visible=False)
142
+ submit_btn = gr.Button(value = "Send to CatGPT",elem_id="submit-btn").style(
143
  margin=True,
144
  rounded=(True, True, True, True),
145
  width=100
 
162
  <div class="footer">
163
  <p>Whisper Model by <a href="https://github.com/openai/whisper" style="text-decoration: underline;" target="_blank">OpenAI</a>
164
  </p>
165
+ <p>This demo uses the Cohere API. Cohere provides access to advanced Large Language Models and NLP tools through one easy-to-use API. <a href="https://cohere.ai/" style="text-decoration: underline;" target="_blank">Get started for free!</a>
166
+ </p>
167
  </div>
168
  ''')
169
  #gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=RamAnanth1.chatGPT_voice)")