Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -64,4 +64,8 @@ async def search(query: str):
|
|
| 64 |
for course in top_courses:
|
| 65 |
l.append(course["course_id"])
|
| 66 |
|
| 67 |
-
return l
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
for course in top_courses:
|
| 65 |
l.append(course["course_id"])
|
| 66 |
|
| 67 |
+
return l
|
| 68 |
+
|
| 69 |
+
if __name__ == "__main__":
|
| 70 |
+
import uvicorn
|
| 71 |
+
uvicorn.run(app, host="0.0.0.0", port=7860) # Hugging Face requires port 7860
|