Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
import os
|
4 |
import json
|
5 |
from collections import deque
|
6 |
-
import aiohttp
|
7 |
|
8 |
TOKEN = os.getenv("HUGGINGFACE_API_TOKEN")
|
9 |
|
@@ -57,9 +56,8 @@ async def respond(
|
|
57 |
content = delta["content"]
|
58 |
yield content
|
59 |
except json.JSONDecodeError:
|
60 |
-
|
61 |
-
|
62 |
-
return # 종료 신호를 적절히 처리
|
63 |
|
64 |
theme = "Nymbo/Nymbo_Theme"
|
65 |
|
|
|
1 |
import gradio as gr
|
2 |
+
import aiohttp
|
3 |
import os
|
4 |
import json
|
5 |
from collections import deque
|
|
|
6 |
|
7 |
TOKEN = os.getenv("HUGGINGFACE_API_TOKEN")
|
8 |
|
|
|
56 |
content = delta["content"]
|
57 |
yield content
|
58 |
except json.JSONDecodeError:
|
59 |
+
# 로그 기록하거나 다른 방법으로 처리
|
60 |
+
pass # 'continue' 대신 'pass' 사용
|
|
|
61 |
|
62 |
theme = "Nymbo/Nymbo_Theme"
|
63 |
|