ldhldh commited on
Commit
e67d0e1
β€’
1 Parent(s): bb27ec9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def mbti(x):
45
 
46
  def chat(x):
47
  x = f"[***λ„ˆλŠ” Assistantμž…λ‹ˆλ‹€. μƒλŒ€μ—κ²Œ λ‹€μ–‘ν•œ μ§ˆλ¬Έμ„ ν•˜λ©° λŒ€ν™”λ₯Ό 이끌고 μžˆμŠ΅λ‹ˆλ‹€. Humanμ—κ²Œ 긍정적이고, κ³΅κ°ν•˜λ©°, μ΅œλŒ€ν•œ 길게 λŒ€λ‹΅ν•΄μ£Όμ„Έμš”***] {x}"
48
- x = x.replace('\nfriend','\\nHuman').replace('\nyou','\\nAssistant').replace('\n\n###','\\n\\n###')
49
  print("\n" + f"{x}")
50
  result = gradio_client.predict(
51
  x,
@@ -82,7 +82,7 @@ with gr.Blocks() as demo:
82
  outputs="text",
83
  description="chat",
84
  #examples= [[f"\nfriend: λ„ˆλŠ” 꿈이 뭐야? \n\n### \nyou: "],[f"\nyou: λ„ˆλŠ” 무슨 색을 κ°€μž₯ μ’‹μ•„ν•΄? \nfriend: κΈ€μŽ„ λ„ˆλŠ”? \n\n### \nyou: "]]
85
- examples= [[f"\\nHuman: λ„ˆλŠ” 꿈이 뭐야? \\n\\n### \\nAssistant: "],[f"\\nAssistant: λ„ˆλŠ” 무슨 색을 κ°€μž₯ μ’‹μ•„ν•΄? \\nHuman: λ‚˜λŠ” νŒŒλž€μƒ‰μ΄ 쒋더라. λ„ˆλŠ” 무슨 색이 μ’‹μ•„? \\n\\n### \\nAssistant: "]]
86
  )
87
 
88
  bb = gr.Interface(
 
45
 
46
  def chat(x):
47
  x = f"[***λ„ˆλŠ” Assistantμž…λ‹ˆλ‹€. μƒλŒ€μ—κ²Œ λ‹€μ–‘ν•œ μ§ˆλ¬Έμ„ ν•˜λ©° λŒ€ν™”λ₯Ό 이끌고 μžˆμŠ΅λ‹ˆλ‹€. Humanμ—κ²Œ 긍정적이고, κ³΅κ°ν•˜λ©°, μ΅œλŒ€ν•œ 길게 λŒ€λ‹΅ν•΄μ£Όμ„Έμš”***] {x}"
48
+ x = x.replace('friend','Human').replace('you','Assistant')
49
  print("\n" + f"{x}")
50
  result = gradio_client.predict(
51
  x,
 
82
  outputs="text",
83
  description="chat",
84
  #examples= [[f"\nfriend: λ„ˆλŠ” 꿈이 뭐야? \n\n### \nyou: "],[f"\nyou: λ„ˆλŠ” 무슨 색을 κ°€μž₯ μ’‹μ•„ν•΄? \nfriend: κΈ€μŽ„ λ„ˆλŠ”? \n\n### \nyou: "]]
85
+ examples= [[f"\nHuman: λ„ˆλŠ” 꿈이 뭐야? \n\n### \nAssistant: "],[f"\nAssistant: λ„ˆλŠ” 무슨 색을 κ°€μž₯ μ’‹μ•„ν•΄? \nHuman: λ‚˜λŠ” νŒŒλž€μƒ‰μ΄ 쒋더라. λ„ˆλŠ” 무슨 색이 μ’‹μ•„? \n\n### \nAssistant: "]]
86
  )
87
 
88
  bb = gr.Interface(