Update app.py
Browse files
app.py
CHANGED
@@ -102,9 +102,11 @@ def respond(
|
|
102 |
full_response = full_response.split("ユーザー:")[0].strip()
|
103 |
|
104 |
# ストリーミング風の出力
|
105 |
-
for i in range(len(full_response)):
|
106 |
-
|
107 |
-
|
|
|
|
|
108 |
|
109 |
except Exception as e:
|
110 |
yield f"エラーが発生しました: {str(e)}"
|
|
|
102 |
full_response = full_response.split("ユーザー:")[0].strip()
|
103 |
|
104 |
# ストリーミング風の出力
|
105 |
+
# for i in range(len(full_response)):
|
106 |
+
# response = full_response[:i+1]
|
107 |
+
# yield response
|
108 |
+
|
109 |
+
return full_response
|
110 |
|
111 |
except Exception as e:
|
112 |
yield f"エラーが発生しました: {str(e)}"
|