ldhldh commited on
Commit
164a52e
ยท
1 Parent(s): 1098387

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -34,7 +34,8 @@ history = dict()
34
 
35
  def predict(user_id, gender, age):
36
  # ์ถ”์ฒœ ํ•ด์„œ ๋ฐ˜ํ™˜
37
- return f"api ์‘๋‹ต์ž…๋‹ˆ๋‹ค. ์ž…๋ ฅ:{x}"
 
38
 
39
  def add(user_id, movie):
40
  if not user_id in history:
@@ -48,12 +49,12 @@ with gr.Blocks() as demo:
48
  fn=predict,
49
  inputs=["text", "text", "text"],
50
  outputs="text",
51
- description="chat",
52
  )
53
  bb = gr.Interface(
54
  fn=add,
55
  inputs=["text", "text"],
56
  outputs="text",
57
- description="chat",
58
  )
59
  demo.queue(max_size=32).launch(enable_queue=True)
 
34
 
35
  def predict(user_id, gender, age):
36
  # ์ถ”์ฒœ ํ•ด์„œ ๋ฐ˜ํ™˜
37
+ movie = "์ถ”์ฒœ ์˜ํ™”"
38
+ return f"{movie}"
39
 
40
  def add(user_id, movie):
41
  if not user_id in history:
 
49
  fn=predict,
50
  inputs=["text", "text", "text"],
51
  outputs="text",
52
+ description="์ถ”์ฒœ",
53
  )
54
  bb = gr.Interface(
55
  fn=add,
56
  inputs=["text", "text"],
57
  outputs="text",
58
+ description="์‹œ์ฒญ๊ธฐ๋ก ์ถ”๊ฐ€",
59
  )
60
  demo.queue(max_size=32).launch(enable_queue=True)