mskov commited on
Commit
6765628
·
1 Parent(s): 72fa6e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -94,19 +94,17 @@ with gr.Blocks() as face:
94
  dropChoice = gr.Dropdown(choices=["text-ada-001", "text-davinci-002", "text-davinci-003", "gpt-3.5-turbo"], label="Model")
95
  sliderChoice = gr.Slider(minimum=0.0, maximum=1.0, default=0.8, step=0.1, label="Temperature")
96
  transcribe_btn = gr.Button(value="Transcribe")
97
- with gr.Column():
98
  script = gr.Textbox(label="Transcribed text")
99
  #options = gr.Textbox(label="Predictions")
100
  #options = gr.Dataset(components=[gr.Radio], samples=["One", "Two", "Three", "Four", "Five"])
101
- gr.Dataset(components=[gr.Textbox(visible=False)],
102
  label="Text Dataset",
103
  samples=[
104
- ["The quick brown fox jumps over the lazy dog"],
105
- ["Build & share delightful machine learning apps"],
106
- ["She sells seashells by the seashore"],
107
- ["Supercalifragilisticexpialidocious"],
108
- ["Lorem ipsum"],
109
- ["That's all folks!"]
110
  ],
111
  )
112
  #options = gr.Radio(choices=["One", "Two", "Three", "Four", "Five"])
 
94
  dropChoice = gr.Dropdown(choices=["text-ada-001", "text-davinci-002", "text-davinci-003", "gpt-3.5-turbo"], label="Model")
95
  sliderChoice = gr.Slider(minimum=0.0, maximum=1.0, default=0.8, step=0.1, label="Temperature")
96
  transcribe_btn = gr.Button(value="Transcribe")
 
97
  script = gr.Textbox(label="Transcribed text")
98
  #options = gr.Textbox(label="Predictions")
99
  #options = gr.Dataset(components=[gr.Radio], samples=["One", "Two", "Three", "Four", "Five"])
100
+ options = gr.Dataset(components=[gr.Textbox(visible=False)],
101
  label="Text Dataset",
102
  samples=[
103
+ ["One"],
104
+ ["Two"],
105
+ ["Three"],
106
+ ["Four"],
107
+ ["Five"],
 
108
  ],
109
  )
110
  #options = gr.Radio(choices=["One", "Two", "Three", "Four", "Five"])