Update app.py
Browse files
app.py
CHANGED
@@ -46,9 +46,9 @@ def run_inference_and_analysis(task, system_prompt, input_text, temperature, top
|
|
46 |
'task': pxt.StringType(),
|
47 |
'system': pxt.StringType(),
|
48 |
'input_text': pxt.StringType(),
|
49 |
-
'timestamp': pxt.TimestampType(),
|
50 |
-
'temperature': pxt.FloatType(),
|
51 |
-
'top_p': pxt.FloatType(),
|
52 |
'max_tokens': pxt.IntType(nullable=True),
|
53 |
'min_tokens': pxt.IntType(nullable=True),
|
54 |
'stop': pxt.StringType(nullable=True),
|
@@ -279,13 +279,13 @@ def gradio_interface():
|
|
279 |
["Sentiment Analysis",
|
280 |
"You are an AI trained to analyze the sentiment of text. Provide a detailed analysis of the emotional tone, highlighting key phrases that indicate sentiment.",
|
281 |
"The new restaurant downtown exceeded all my expectations. The food was exquisite, the service impeccable, and the ambiance was perfect for a romantic evening. I can't wait to go back!",
|
282 |
-
0.3, 0.95, 200
|
283 |
|
284 |
# Example 2: Creative Writing
|
285 |
["Story Generation",
|
286 |
"You are a creative writer. Generate a short, engaging story based on the given prompt. Include vivid descriptions and an unexpected twist.",
|
287 |
"In a world where dreams are shared, a young girl discovers she can manipulate other people's dreams.",
|
288 |
-
0.9, 0.8, 500,
|
289 |
]
|
290 |
|
291 |
gr.Examples(
|
|
|
46 |
'task': pxt.StringType(),
|
47 |
'system': pxt.StringType(),
|
48 |
'input_text': pxt.StringType(),
|
49 |
+
'timestamp': pxt.TimestampType(nullable=True),
|
50 |
+
'temperature': pxt.FloatType(nullable=True),
|
51 |
+
'top_p': pxt.FloatType(nullable=True),
|
52 |
'max_tokens': pxt.IntType(nullable=True),
|
53 |
'min_tokens': pxt.IntType(nullable=True),
|
54 |
'stop': pxt.StringType(nullable=True),
|
|
|
279 |
["Sentiment Analysis",
|
280 |
"You are an AI trained to analyze the sentiment of text. Provide a detailed analysis of the emotional tone, highlighting key phrases that indicate sentiment.",
|
281 |
"The new restaurant downtown exceeded all my expectations. The food was exquisite, the service impeccable, and the ambiance was perfect for a romantic evening. I can't wait to go back!",
|
282 |
+
0.3, 0.95, 200],
|
283 |
|
284 |
# Example 2: Creative Writing
|
285 |
["Story Generation",
|
286 |
"You are a creative writer. Generate a short, engaging story based on the given prompt. Include vivid descriptions and an unexpected twist.",
|
287 |
"In a world where dreams are shared, a young girl discovers she can manipulate other people's dreams.",
|
288 |
+
0.9, 0.8, 500, 300, "The end"]
|
289 |
]
|
290 |
|
291 |
gr.Examples(
|