Niki Zhang commited on
Commit
c550aee
·
verified ·
1 Parent(s): e2352ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -1254,7 +1254,7 @@ async def submit_caption(naritive, state,length, sentiment, factuality, language
1254
  return state, state, click_index_state, input_mask_state, input_points_state, input_labels_state, out_state, None,None,log_state,history
1255
 
1256
 
1257
- naritive_mapping = {"Third-person": 0, "Single-Persona: Artist": 1, "Multi-Persona: Objects": 2}
1258
 
1259
  def generate_prompt(focus_type, paragraph,length, sentiment, factuality, language,naritive):
1260
 
@@ -1777,14 +1777,14 @@ def change_naritive(session_type,image_input, state, click_state, paragraph, ori
1777
  f"🤖 Hi, I am EyeSee. Let's explore this painting together."
1778
  )
1779
  ]
1780
- elif narritive=="Single-Persona: Artist":
1781
  state += [
1782
  (
1783
  None,
1784
  f"🧑‍🎨 Let's delve into it from the perspective of the artist."
1785
  )
1786
  ]
1787
- elif narritive=="Multi-Persona: Objects":
1788
  state += [
1789
  (
1790
  None,
@@ -1799,14 +1799,14 @@ def change_naritive(session_type,image_input, state, click_state, paragraph, ori
1799
  "🤖 让我们从第三方视角一起探索这幅画吧。"
1800
  )
1801
  ]
1802
- elif narritive == "Single-Persona: Artist":
1803
  state += [
1804
  (
1805
  None,
1806
  "🧑‍🎨 让我们从艺术家的视角深入探索这幅画。"
1807
  )
1808
  ]
1809
- elif narritive == "Multi-Persona: Objects":
1810
  state += [
1811
  (
1812
  None,
@@ -2059,9 +2059,9 @@ def create_ui():
2059
  with gr.Column(visible=False) as modules_not_need_gpt2:
2060
  with gr.Row():
2061
  naritive = gr.Radio(
2062
- choices=["Third-person", "Single-Persona: Artist","Multi-Persona: Objects"],
2063
  value="Third-person",
2064
- label="Persona",
2065
  scale=5,
2066
  interactive=True)
2067
  with gr.Blocks():
 
1254
  return state, state, click_index_state, input_mask_state, input_points_state, input_labels_state, out_state, None,None,log_state,history
1255
 
1256
 
1257
+ naritive_mapping = {"Third-person": 0, "Artist Character": 1, "In-Situ Character": 2}
1258
 
1259
  def generate_prompt(focus_type, paragraph,length, sentiment, factuality, language,naritive):
1260
 
 
1777
  f"🤖 Hi, I am EyeSee. Let's explore this painting together."
1778
  )
1779
  ]
1780
+ elif narritive=="Artist Character":
1781
  state += [
1782
  (
1783
  None,
1784
  f"🧑‍🎨 Let's delve into it from the perspective of the artist."
1785
  )
1786
  ]
1787
+ elif narritive=="In-Situ Character":
1788
  state += [
1789
  (
1790
  None,
 
1799
  "🤖 让我们从第三方视角一起探索这幅画吧。"
1800
  )
1801
  ]
1802
+ elif narritive == "Artist Character":
1803
  state += [
1804
  (
1805
  None,
1806
  "🧑‍🎨 让我们从艺术家的视角深入探索这幅画。"
1807
  )
1808
  ]
1809
+ elif narritive == "In-Situ Character":
1810
  state += [
1811
  (
1812
  None,
 
2059
  with gr.Column(visible=False) as modules_not_need_gpt2:
2060
  with gr.Row():
2061
  naritive = gr.Radio(
2062
+ choices=["Third-person", "Artist Character","In-Situ Character"],
2063
  value="Third-person",
2064
+ label="Character",
2065
  scale=5,
2066
  interactive=True)
2067
  with gr.Blocks():