Spaces:
Runtime error
Runtime error
Update demo.py
Browse files
demo.py
CHANGED
@@ -118,6 +118,8 @@ def generate_exercise(state):
|
|
118 |
except KeyError as e:
|
119 |
raise gr.Error(f"Missing key: {e}")
|
120 |
|
|
|
|
|
121 |
step3 = requests.post(
|
122 |
BASE_URL + "Exercises/GenerateExercise",
|
123 |
headers={"ApiKey": API_KEY, "SetupModel": str(SETUP_MODEL)},
|
|
|
118 |
except KeyError as e:
|
119 |
raise gr.Error(f"Missing key: {e}")
|
120 |
|
121 |
+
print(json)
|
122 |
+
|
123 |
step3 = requests.post(
|
124 |
BASE_URL + "Exercises/GenerateExercise",
|
125 |
headers={"ApiKey": API_KEY, "SetupModel": str(SETUP_MODEL)},
|