Merge branch 'main' of https://huggingface.co/spaces/SwayamAK/CodeGPT
Browse files
app.py
CHANGED
|
@@ -34,10 +34,9 @@ def CustomChatGPT(user_input):
|
|
| 34 |
ChatGPT_reply = response["choices"][0]["message"]["content"]
|
| 35 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 36 |
|
| 37 |
-
|
| 38 |
return ChatGPT_reply
|
| 39 |
|
| 40 |
-
demo = gradio.Interface(fn=CustomChatGPT, inputs="text", outputs="text", title="CodeGPT",description="CodeGPT is an coding assistant based on GPT-3.5 Turbo for competitive programming, data structures, algorithms, and general programming tasks. This model is accessed using the official OpenAI API, allowing you to extract text responses related to coding queries.CodeGPT is built using the powerful GPT-3.5 Turbo model provided by OpenAI. We would like to express our gratitude to OpenAI for their contributions to the field of natural language processing and machine learning.")
|
| 41 |
|
|
|
|
| 42 |
|
| 43 |
demo.launch()
|
|
|
|
| 34 |
ChatGPT_reply = response["choices"][0]["message"]["content"]
|
| 35 |
messages.append({"role": "assistant", "content": ChatGPT_reply})
|
| 36 |
|
|
|
|
| 37 |
return ChatGPT_reply
|
| 38 |
|
|
|
|
| 39 |
|
| 40 |
+
demo = gradio.Interface(fn=CustomChatGPT, inputs="text", outputs="text", title="CodeGPT",description="CodeGPT is a GPT-3.5 Turbo-based coding assistant for general programming jobs, data structures, algorithms, and competitive programming. You can extract text responses to coding-related prompts using this model.Using OpenAI's potent GPT-3.5 Turbo model, CodeGPT was created. We would like to thank OpenAI for their contributions to the machine learning and natural language processing fields.")
|
| 41 |
|
| 42 |
demo.launch()
|