Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ import gradio as gr
|
|
15 |
|
16 |
title = 'Text market sentiment'
|
17 |
text_ = "Bitcoin to the moon"
|
18 |
-
model = torch.load("./model.pt")
|
19 |
|
20 |
inp = [gr.Textbox(label='API Key', placeholder="What is your API Key?"), gr.Textbox(label='Audio File URL', placeholder="Audio file URL?")]
|
21 |
out = gr.Textbox(label='Output')
|
|
|
15 |
|
16 |
title = 'Text market sentiment'
|
17 |
text_ = "Bitcoin to the moon"
|
18 |
+
model = torch.load("./model.pt", map_location=torch.device('cpu'))
|
19 |
|
20 |
inp = [gr.Textbox(label='API Key', placeholder="What is your API Key?"), gr.Textbox(label='Audio File URL', placeholder="Audio file URL?")]
|
21 |
out = gr.Textbox(label='Output')
|