Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 102 |
label="Text Dataset",
|
| 103 |
samples=[
|
| 104 |
-
["
|
| 105 |
-
["
|
| 106 |
-
["
|
| 107 |
-
["
|
| 108 |
-
["
|
| 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"])
|