Spaces:
Runtime error
Runtime error
Commit
·
f2cdac9
1
Parent(s):
03c3123
My commit
Browse files
app.py
CHANGED
|
@@ -4,7 +4,10 @@ import gradio as gr
|
|
| 4 |
|
| 5 |
def predict(file):
|
| 6 |
# print(file.name)
|
| 7 |
-
print(file
|
|
|
|
|
|
|
|
|
|
| 8 |
ans = make_prediction(file.name)
|
| 9 |
return {ans[0] :ans[1]}
|
| 10 |
|
|
|
|
| 4 |
|
| 5 |
def predict(file):
|
| 6 |
# print(file.name)
|
| 7 |
+
# print(file)
|
| 8 |
+
with open(file.name, 'r') as f:
|
| 9 |
+
print(f.read())
|
| 10 |
+
print("=====================================")
|
| 11 |
ans = make_prediction(file.name)
|
| 12 |
return {ans[0] :ans[1]}
|
| 13 |
|