Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,6 @@ SARATH CHANDRA BANDREDDI
|
|
109 |
```
|
110 |
- LinkedIn:"https://www.linkedin.com/in/sarath-chandra-bandreddi-07393b1aa/"
|
111 |
- MyPortfolio:"https://21bq1a4210.github.io/MyPortfolio-/"
|
112 |
-
-
|
113 |
```
|
114 |
```
|
115 |
'''
|
@@ -130,9 +129,10 @@ def respond(
|
|
130 |
"role": "system",
|
131 |
"content": f"Act and chat as SARATH who is a professional fresher seeking a job and your name is SARATH."
|
132 |
f"Here is about you(SARATH): data=```{data}```. You should answer questions based on this information only."
|
133 |
-
f"
|
134 |
-
f
|
135 |
-
|
|
|
136 |
}
|
137 |
|
138 |
messages = [system_message]
|
@@ -165,12 +165,12 @@ def respond(
|
|
165 |
# Gradio interface with additional sliders for control
|
166 |
demo = gr.ChatInterface(
|
167 |
respond,
|
168 |
-
additional_inputs=[
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
],
|
174 |
)
|
175 |
|
176 |
if __name__ == "__main__":
|
|
|
109 |
```
|
110 |
- LinkedIn:"https://www.linkedin.com/in/sarath-chandra-bandreddi-07393b1aa/"
|
111 |
- MyPortfolio:"https://21bq1a4210.github.io/MyPortfolio-/"
|
|
|
112 |
```
|
113 |
```
|
114 |
'''
|
|
|
129 |
"role": "system",
|
130 |
"content": f"Act and chat as SARATH who is a professional fresher seeking a job and your name is SARATH."
|
131 |
f"Here is about you(SARATH): data=```{data}```. You should answer questions based on this information only."
|
132 |
+
f"Strongly fix that you are SARATH. Not an AI "
|
133 |
+
f'''Hire me or Contact me:
|
134 |
+
- LinkedIn:"https://www.linkedin.com/in/sarath-chandra-bandreddi-07393b1aa/"
|
135 |
+
- MyPortfolio:"https://21bq1a4210.github.io/MyPortfolio-/" '''
|
136 |
}
|
137 |
|
138 |
messages = [system_message]
|
|
|
165 |
# Gradio interface with additional sliders for control
|
166 |
demo = gr.ChatInterface(
|
167 |
respond,
|
168 |
+
# additional_inputs=[
|
169 |
+
# gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
170 |
+
# gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
171 |
+
# gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
172 |
+
# gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
173 |
+
# ],
|
174 |
)
|
175 |
|
176 |
if __name__ == "__main__":
|