Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,16 +4,10 @@ import torch
|
|
4 |
from inference import run_inference
|
5 |
|
6 |
|
7 |
-
description_zero_shot_training = """ ###
|
8 |
-
|
9 |
-
1. Choose a Dataset MNIST/CIFAR10
|
10 |
-
|
11 |
-
2. Output will be class accuracy
|
12 |
-
|
13 |
-
"""
|
14 |
|
15 |
# Description
|
16 |
-
title = "<center><strong><font size='8'>π
|
17 |
|
18 |
text_input = gr.Text(label="Enter text")
|
19 |
text_input2 = gr.Text(label="Generated Response")
|
@@ -38,7 +32,7 @@ with gr.Blocks(css=css, title='Play with CLIP') as demo:
|
|
38 |
# Submit & Clear
|
39 |
with gr.Row():
|
40 |
with gr.Column():
|
41 |
-
run_chat_with_phi2_button = gr.Button("
|
42 |
clear_btn_text_to_image = gr.Button("Clear", variant="secondary")
|
43 |
gr.Markdown(description_zero_shot_training)
|
44 |
gr.Examples(examples = ["What is Large Language models ?", "Can you write a short introduction about the relevance of the term monopsony in economics? Please use examples related to potential monopsonies in the labour market and cite relevant research.", "I want to start doing astrophotography as a hobby, any suggestions what could i do?"],
|
|
|
4 |
from inference import run_inference
|
5 |
|
6 |
|
7 |
+
description_zero_shot_training = """ ### Chat with Phi-2 """
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Description
|
10 |
+
title = "<center><strong><font size='8'>π Phi-2 Chat (Trained on OpenAssistant/oasst1 Dataset with QLoRA) π</font></strong></center>"
|
11 |
|
12 |
text_input = gr.Text(label="Enter text")
|
13 |
text_input2 = gr.Text(label="Generated Response")
|
|
|
32 |
# Submit & Clear
|
33 |
with gr.Row():
|
34 |
with gr.Column():
|
35 |
+
run_chat_with_phi2_button = gr.Button("chat with phi2", variant='primary')
|
36 |
clear_btn_text_to_image = gr.Button("Clear", variant="secondary")
|
37 |
gr.Markdown(description_zero_shot_training)
|
38 |
gr.Examples(examples = ["What is Large Language models ?", "Can you write a short introduction about the relevance of the term monopsony in economics? Please use examples related to potential monopsonies in the labour market and cite relevant research.", "I want to start doing astrophotography as a hobby, any suggestions what could i do?"],
|