Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import inspect
|
| 4 |
from gradio import routes
|
| 5 |
from typing import List, Type
|
| 6 |
-
|
| 7 |
import requests, os, re, asyncio, json
|
| 8 |
|
| 9 |
loop = asyncio.get_event_loop()
|
|
@@ -42,6 +42,7 @@ def chat(id, npc, prompt):
|
|
| 42 |
return "no coin"
|
| 43 |
|
| 44 |
# model inference
|
|
|
|
| 45 |
output = "AI μλ΅μ
λλ€."
|
| 46 |
|
| 47 |
|
|
|
|
| 3 |
import inspect
|
| 4 |
from gradio import routes
|
| 5 |
from typing import List, Type
|
| 6 |
+
from petals import AutoDistributedModelForCausalLM
|
| 7 |
import requests, os, re, asyncio, json
|
| 8 |
|
| 9 |
loop = asyncio.get_event_loop()
|
|
|
|
| 42 |
return "no coin"
|
| 43 |
|
| 44 |
# model inference
|
| 45 |
+
|
| 46 |
output = "AI μλ΅μ
λλ€."
|
| 47 |
|
| 48 |
|