wonwizard commited on
Commit
4a76a56
·
1 Parent(s): 95f4eea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -23,7 +23,7 @@ def get_text_after_colon(input_text):
23
  return input_text
24
 
25
  def infer(image_input, audience):
26
- gr.Info('Calling CLIP Interrogator ...')
27
  clipi_result = clipi_client.predict(
28
  image_input, # str (filepath or URL to image) in 'parameter_3' Image component
29
  "best", # str in 'Select mode' Radio component
@@ -40,7 +40,7 @@ def infer(image_input, audience):
40
  한국어로 답변해줘.
41
 
42
  """
43
- gr.Info('Calling ChatGPT ...')
44
  #result = client.predict(
45
  # llama_q, # str in 'Message' Textbox component
46
  # "I2S",
@@ -125,8 +125,9 @@ with gr.Blocks(css=css) as demo:
125
  with gr.Column(elem_id="col-container"):
126
  gr.Markdown(
127
  """
128
- <h1 style="text-align: center">Image to Story</h1>
129
- <p style="text-align: center">Upload an image, get a story made by Llama2 !</p>
 
130
  """
131
  )
132
  with gr.Row():
 
23
  return input_text
24
 
25
  def infer(image_input, audience):
26
+ gr.Info('Calling CLIP Interrogator, 이미지를 해석하고 있습니다...')
27
  clipi_result = clipi_client.predict(
28
  image_input, # str (filepath or URL to image) in 'parameter_3' Image component
29
  "best", # str in 'Select mode' Radio component
 
40
  한국어로 답변해줘.
41
 
42
  """
43
+ gr.Info('Calling ChatGPT, 이야기를 만들고 있습니다...')
44
  #result = client.predict(
45
  # llama_q, # str in 'Message' Textbox component
46
  # "I2S",
 
125
  with gr.Column(elem_id="col-container"):
126
  gr.Markdown(
127
  """
128
+ <h1 style="text-align: center">Korean Image to Story</h1>
129
+ <p style="text-align: center">이미지를 업로드하세요, ChatGPT를 통해 한국어로 이야기를 만들어 줍니다!</p>
130
+ <p style="text-align: center">원본 https://huggingface.co/spaces/fffiloni/Image-to-Story 에서 조금 수정한 것입니다.</p>
131
  """
132
  )
133
  with gr.Row():