jwang2373 commited on
Commit
033d85b
1 Parent(s): 78c29ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -8,11 +8,11 @@ from threading import Thread
8
 
9
  MODEL = "jwang2373/ChronoGemma"
10
 
11
- TITLE = "<h1><center>LongWriter-llama3.1-8b</center></h1>"
12
 
13
  PLACEHOLDER = """
14
  <center>
15
- <p>Hi! I'm LongWriter, capable of generating 10,000+ words. How can I assist you today?</p>
16
  </center>
17
  """
18
 
@@ -88,7 +88,7 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
88
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
89
  additional_inputs=[
90
  gr.Textbox(
91
- value="You are a helpful assistant capable of generating long-form content.",
92
  label="System Prompt",
93
  render=False,
94
  ),
@@ -102,9 +102,9 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
102
  ),
103
  gr.Slider(
104
  minimum=1024,
105
- maximum=32768,
106
  step=1024,
107
- value=32768,
108
  label="Max new tokens",
109
  render=False,
110
  ),
@@ -120,16 +120,16 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
120
  minimum=1,
121
  maximum=100,
122
  step=1,
123
- value=50,
124
  label="Top k",
125
  render=False,
126
  ),
127
  ],
128
  examples=[
129
- ["Write a 5000-word comprehensive guide on machine learning for beginners."],
130
- ["Create a detailed 3000-word business plan for a sustainable energy startup."],
131
- ["Compose a 2000-word short story set in a futuristic underwater city."],
132
- ["Develop a 4000-word research proposal on the potential effects of climate change on global food security."],
133
  ],
134
  cache_examples=False,
135
  )
 
8
 
9
  MODEL = "jwang2373/ChronoGemma"
10
 
11
+ TITLE = "<h1><center>UW-SBEL-ChronoGemma-27b</center></h1>"
12
 
13
  PLACEHOLDER = """
14
  <center>
15
+ <p>Hi! I'm a PyChrono Digital Twin expert. How can I assist you today?</p>
16
  </center>
17
  """
18
 
 
88
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
89
  additional_inputs=[
90
  gr.Textbox(
91
+ value="You are a PyChrono expert.",
92
  label="System Prompt",
93
  render=False,
94
  ),
 
102
  ),
103
  gr.Slider(
104
  minimum=1024,
105
+ maximum=4096,
106
  step=1024,
107
+ value=4096,
108
  label="Max new tokens",
109
  render=False,
110
  ),
 
120
  minimum=1,
121
  maximum=100,
122
  step=1,
123
+ value=100,
124
  label="Top k",
125
  render=False,
126
  ),
127
  ],
128
  examples=[
129
+ ["Run a PyChrono simulation of a sedan driving on a flat surface with a detailed vehicle dynamics model."],
130
+ ["Run a real-time simulation of an HMMWV vehicle on a bumpy and textured road."],
131
+ ["Set up a Curiosity rover driving simulation on flat, rigid ground in PyChrono."],
132
+ ["Simulate a FEDA vehicle driving on rigid terrain in PyChrono."],
133
  ],
134
  cache_examples=False,
135
  )