Berbex commited on
Commit
12f070b
Β·
1 Parent(s): ce2b636

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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')