Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
#!pip install -q transformers datasets torch gradio console_logging numpy
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import gradio as gr
|
4 |
import torch
|
5 |
from datasets import load_dataset
|
@@ -123,4 +130,5 @@ trainer = Trainer(
|
|
123 |
|
124 |
trainer.train()
|
125 |
|
126 |
-
trainer.evaluate()
|
|
|
|
1 |
#!pip install -q transformers datasets torch gradio console_logging numpy
|
2 |
|
3 |
+
title = 'Text market sentiment'
|
4 |
+
text_ = "Bitcoin to the moon"
|
5 |
+
interface = gr.Interface.load("huggingface/berbex/model",
|
6 |
+
title = title,
|
7 |
+
theme = "peach",
|
8 |
+
examples = [[text_]]).launch()
|
9 |
+
|
10 |
import gradio as gr
|
11 |
import torch
|
12 |
from datasets import load_dataset
|
|
|
130 |
|
131 |
trainer.train()
|
132 |
|
133 |
+
trainer.evaluate()
|
134 |
+
|