Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,14 @@ def analyze_argument(argument):
|
|
| 25 |
output = output.split("### Response:")[1].strip().split("<|endoftext|>")[0]
|
| 26 |
return output
|
| 27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
gr.Interface(analyze_argument, inputs="text", outputs="text",
|
| 30 |
title="Simple Arguments Analyzer",
|
| 31 |
-
description=
|
| 32 |
examples=[["If it's wednesday it's cold, and it's cold, therefore it's wednesday."]]).launch()
|
|
|
|
| 25 |
output = output.split("### Response:")[1].strip().split("<|endoftext|>")[0]
|
| 26 |
return output
|
| 27 |
|
| 28 |
+
description = """This tool analyzes simple arguments, that is, arguments composed of at most two propositions.
|
| 29 |
+
|
| 30 |
+
It applies the fine-tuned LLM from https://huggingface.co/cris177/Qwen2-Simple-Arguments
|
| 31 |
+
|
| 32 |
+
It requires only 6 GB of RAM, and runs on just 2 vCPUs (which causes it to run somewhat slowly in this demo).
|
| 33 |
+
"""
|
| 34 |
|
| 35 |
gr.Interface(analyze_argument, inputs="text", outputs="text",
|
| 36 |
title="Simple Arguments Analyzer",
|
| 37 |
+
description=description,
|
| 38 |
examples=[["If it's wednesday it's cold, and it's cold, therefore it's wednesday."]]).launch()
|