Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -64,7 +64,15 @@ async def Reply(req: Request):
|
|
64 |
|
65 |
print(f'REPLY: {reply}')
|
66 |
return {'reply': reply}
|
|
|
|
|
|
|
67 |
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
@app.get("/")
|
70 |
def read_root():
|
|
|
64 |
|
65 |
print(f'REPLY: {reply}')
|
66 |
return {'reply': reply}
|
67 |
+
@app.post('/rep')
|
68 |
+
def Rep():
|
69 |
+
|
70 |
|
71 |
+
|
72 |
+
reply = gpt4free.Completion.create(Provider.Theb, prompt="hello")
|
73 |
+
|
74 |
+
print(f'REPLY: {reply}')
|
75 |
+
return {'reply': reply}
|
76 |
|
77 |
@app.get("/")
|
78 |
def read_root():
|