From 44580776bd015941efe91dc1dc83aced31c40a1c Mon Sep 17 00:00:00 2001 From: shahab00x Date: Tue, 20 Feb 2024 00:15:07 +0330 Subject: [PATCH] produces the correct html code and summary. Next objective is to be able to push it to wordpress directly from this gradio UI. --- webui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 077977f..cc3069c 100644 --- a/webui.py +++ b/webui.py @@ -44,7 +44,9 @@ def write_article(url): # prompt_for_ai = ("Write a summary of the following product and an overview of people's experiences based on the " # "provided reviews of it as follows. Format it nicely and professionally in HTML:\n\n") + text - prompt_for_ai = "write a succinct summary article about this product. Format it nicely in HTML:\n\n" + text + # prompt_for_ai = "write a succinct summary article about this product. Format it nicely in HTML:\n\n" + text + prompt_for_ai = ("write an article containing a short summary of the following product and an overview of people's " + "experiences based on the provided reviews of it as follows. Format it nicely in HTML:\n") + text # prompt_for_ai = (f"Write an HTML code that includes a professionally authored article summary of the following " # f"product and an overview of people's experiences based on the provided reviews of it as "