Spaces:
Running
Running
Commit ·
a02c4e5
1
Parent(s): 62aca87
hide model name
Browse files
app.py
CHANGED
|
@@ -67,7 +67,7 @@ def evaluate_submission(file_obj):
|
|
| 67 |
student_module = importlib.util.module_from_spec(spec)
|
| 68 |
spec.loader.exec_module(student_module)
|
| 69 |
|
| 70 |
-
report = [f"## Results
|
| 71 |
|
| 72 |
# --- EXERCISE 1 ---
|
| 73 |
ex1_passed = 0
|
|
@@ -135,8 +135,7 @@ demo = gr.Interface(
|
|
| 135 |
fn=evaluate_submission,
|
| 136 |
inputs=gr.File(label="Submission File"),
|
| 137 |
outputs="markdown",
|
| 138 |
-
api_name="predict"
|
| 139 |
)
|
| 140 |
|
| 141 |
-
# We limit concurrency to 1 or 2 so the GPU doesn't OOM with 200 students
|
| 142 |
demo.queue(default_concurrency_limit=1).launch()
|
|
|
|
| 67 |
student_module = importlib.util.module_from_spec(spec)
|
| 68 |
spec.loader.exec_module(student_module)
|
| 69 |
|
| 70 |
+
report = [f"## Results:\n"]
|
| 71 |
|
| 72 |
# --- EXERCISE 1 ---
|
| 73 |
ex1_passed = 0
|
|
|
|
| 135 |
fn=evaluate_submission,
|
| 136 |
inputs=gr.File(label="Submission File"),
|
| 137 |
outputs="markdown",
|
| 138 |
+
api_name="predict"
|
| 139 |
)
|
| 140 |
|
|
|
|
| 141 |
demo.queue(default_concurrency_limit=1).launch()
|