Spaces:
Runtime error
Runtime error
Create appy.py
Browse files
appy.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def critique(text):
|
| 4 |
+
return "MiniCrit demo is running.\n\nYou entered:\n" + (text or "")
|
| 5 |
+
|
| 6 |
+
demo = gr.Interface(
|
| 7 |
+
fn=critique,
|
| 8 |
+
inputs=gr.Textbox(lines=4, label="Input"),
|
| 9 |
+
outputs=gr.Textbox(lines=8, label="Output"),
|
| 10 |
+
title="MiniCrit Demo",
|
| 11 |
+
description="Minimal working demo. Full model loads after GPU grant."
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
demo.launch()
|