Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from aiogoogletrans import Translator
|
|
7 |
|
8 |
import requests, os, re, asyncio
|
9 |
|
|
|
10 |
loop = asyncio.get_event_loop()
|
11 |
gradio_client = GrClient(os.environ.get('GrClient_url'))
|
12 |
translator = Translator()
|
@@ -42,7 +43,6 @@ def mbti(x):
|
|
42 |
|
43 |
return r
|
44 |
|
45 |
-
count = 0
|
46 |
def chat(x):
|
47 |
x = f"[***๋๋ Assistant์
๋๋ค. ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. Human์๊ฒ ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ์ต๋ํ ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"
|
48 |
x = x.replace('friend','Human').replace('you','Assistant')
|
|
|
7 |
|
8 |
import requests, os, re, asyncio
|
9 |
|
10 |
+
count = 0
|
11 |
loop = asyncio.get_event_loop()
|
12 |
gradio_client = GrClient(os.environ.get('GrClient_url'))
|
13 |
translator = Translator()
|
|
|
43 |
|
44 |
return r
|
45 |
|
|
|
46 |
def chat(x):
|
47 |
x = f"[***๋๋ Assistant์
๋๋ค. ์๋์๊ฒ ๋ค์ํ ์ง๋ฌธ์ ํ๋ฉฐ ๋ํ๋ฅผ ์ด๋๊ณ ์์ต๋๋ค. Human์๊ฒ ๊ธ์ ์ ์ด๊ณ , ๊ณต๊ฐํ๋ฉฐ, ์ต๋ํ ๊ธธ๊ฒ ๋๋ตํด์ฃผ์ธ์***] {x}"
|
48 |
x = x.replace('friend','Human').replace('you','Assistant')
|