Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,12 @@ import gradio as gr
|
|
4 |
|
5 |
title = 'Text market sentiment'
|
6 |
text_ = "Bitcoin to the moon"
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
title = title,
|
9 |
theme = "peach",
|
10 |
examples = [[text_]]).launch()
|
|
|
4 |
|
5 |
title = 'Text market sentiment'
|
6 |
text_ = "Bitcoin to the moon"
|
7 |
+
model = torch.load("huggingface/Berbex/Model")
|
8 |
+
|
9 |
+
inp = [gr.Textbox(label='API Key', placeholder="What is your API Key?"), gr.Textbox(label='Audio File URL', placeholder="Audio file URL?")]
|
10 |
+
out = gr.Textbox(label='Output')
|
11 |
+
|
12 |
+
interface = gr.Interface.load(input=inp,output=out,
|
13 |
title = title,
|
14 |
theme = "peach",
|
15 |
examples = [[text_]]).launch()
|