Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,11 +4,14 @@ import tensorflow as tf
|
|
| 4 |
import json
|
| 5 |
import os
|
| 6 |
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
with open("question_answer.json", "w") as file:
|
| 10 |
-
json.dump(data, file, indent=4)
|
| 11 |
-
|
| 12 |
print("Loading the model......")
|
| 13 |
model_name = "WICKED4950/Irisonego5"
|
| 14 |
strategy = tf.distribute.MirroredStrategy()
|
|
|
|
| 4 |
import json
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
script_path = os.path.abspath(__file__)
|
| 8 |
+
print(f"The script is running from: {script_path}")
|
| 9 |
+
|
| 10 |
+
# Get the directory of the running script
|
| 11 |
+
script_directory = os.path.dirname(script_path)
|
| 12 |
+
print(f"The script is located in: {script_directory}")
|
| 13 |
+
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
print("Loading the model......")
|
| 16 |
model_name = "WICKED4950/Irisonego5"
|
| 17 |
strategy = tf.distribute.MirroredStrategy()
|