Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,10 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
| 11 |
with strategy.scope():
|
| 12 |
model = TFBlenderbotForConditionalGeneration.from_pretrained(model_name)
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
def save_question(question,answer,path = "question_answer.json"):
|
| 15 |
with open(path, "r") as file:
|
| 16 |
data = json.load(file)
|
|
|
|
| 11 |
with strategy.scope():
|
| 12 |
model = TFBlenderbotForConditionalGeneration.from_pretrained(model_name)
|
| 13 |
|
| 14 |
+
with open(path, "r") as file:
|
| 15 |
+
data = json.load(file)
|
| 16 |
+
|
| 17 |
+
print(data)
|
| 18 |
def save_question(question,answer,path = "question_answer.json"):
|
| 19 |
with open(path, "r") as file:
|
| 20 |
data = json.load(file)
|