Spaces:
Build error
Build error
Commit ·
c94cef8
1
Parent(s): ce4a8b3
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,12 +21,11 @@ def evaluate(sentence):
|
|
| 21 |
def predict(sentence):
|
| 22 |
timestamp = datetime.datetime.now().isoformat()
|
| 23 |
start_time = time.time()
|
| 24 |
-
predictions = evaluate(
|
| 25 |
elapsed_time = time.time() - start_time
|
| 26 |
output = predictions
|
| 27 |
print(f"Sentence: {sentence} \nPrediction: {predictions}")
|
| 28 |
-
|
| 29 |
-
|
| 30 |
return output
|
| 31 |
|
| 32 |
gradio.Interface(
|
|
|
|
| 21 |
def predict(sentence):
|
| 22 |
timestamp = datetime.datetime.now().isoformat()
|
| 23 |
start_time = time.time()
|
| 24 |
+
predictions = evaluate(sentence)
|
| 25 |
elapsed_time = time.time() - start_time
|
| 26 |
output = predictions
|
| 27 |
print(f"Sentence: {sentence} \nPrediction: {predictions}")
|
| 28 |
+
|
|
|
|
| 29 |
return output
|
| 30 |
|
| 31 |
gradio.Interface(
|