Spaces:
Runtime error
Runtime error
Commit
·
3519dbd
1
Parent(s):
f2cdac9
My commit
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
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)
|
|
|
5 |
def predict(file):
|
6 |
# print(file.name)
|
7 |
# print(file)
|
8 |
+
with open(file.name, 'r', encoding="base64") as f:
|
9 |
print(f.read())
|
10 |
print("=====================================")
|
11 |
ans = make_prediction(file.name)
|