Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ text_pipe = pipeline("text-classification", model="karalif/myTestModel", return_
|
|
| 7 |
def predict(text):
|
| 8 |
greeting_pattern = r"^(Halló|Hæ|Sæl|Góðan dag|Kær kveðja|Daginn|Kvöldið|Ágætis|Elsku)"
|
| 9 |
|
| 10 |
-
greeting_feedback = "
|
| 11 |
|
| 12 |
results = text_pipe(text)
|
| 13 |
all_scores = results[0]
|
|
@@ -37,7 +37,6 @@ description_html = """
|
|
| 37 |
<img src='http://www.ru.is/media/HR_logo_vinstri_transparent.png' width='250' height='auto'>
|
| 38 |
</center>
|
| 39 |
"""
|
| 40 |
-
textbox = gr.Textbox()
|
| 41 |
|
| 42 |
demo = gr.Interface(
|
| 43 |
fn=predict,
|
|
|
|
| 7 |
def predict(text):
|
| 8 |
greeting_pattern = r"^(Halló|Hæ|Sæl|Góðan dag|Kær kveðja|Daginn|Kvöldið|Ágætis|Elsku)"
|
| 9 |
|
| 10 |
+
greeting_feedback = ""
|
| 11 |
|
| 12 |
results = text_pipe(text)
|
| 13 |
all_scores = results[0]
|
|
|
|
| 37 |
<img src='http://www.ru.is/media/HR_logo_vinstri_transparent.png' width='250' height='auto'>
|
| 38 |
</center>
|
| 39 |
"""
|
|
|
|
| 40 |
|
| 41 |
demo = gr.Interface(
|
| 42 |
fn=predict,
|