ldhldh commited on
Commit
3c15e33
โ€ข
1 Parent(s): eeadb6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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')